
#import <Foundation/Foundation.h>

#import "SimpleAudioEngine.h"
#import "cocos2d.h"

typedef enum 
{
	EBottle_Game_Result,//弹出惩罚
	EBottle_Game_Return,//返回
	EBottle_Game_Des,   //帮助
	EBottle_Game_Count
}EBottle_Game;

typedef enum 
{
	EBottle_State_Init,
	EBottle_State_Turning,
	EBottle_State_Done,
	EBottle_State_Count
}EBottle_State;

@protocol Bottle_GameDelegate

- (void)Bottle_GameSelect:(NSInteger)pIndex;

@end

@interface Bottle_Game : CCLayer <ReplaceLayerActionDelegate>
{
	id<Bottle_GameDelegate> delegate;
	
	CCSprite * roundDisk;
	CCSprite * bottleEffect;
	
	CCSprite * bottleTip1;
	CCSprite * bottleTip2;
	
	CCSprite *bottomNumBg;
	CCSprite *bottomNumBg_dark;
	
	//BOOL    b_IsTurning;
	
	EBottle_State m_nState;
	
	CGFloat diskRotation;
	CGFloat angleBeforeTouchesEnd;//最后一次调用touchesMoved roundDisk 旋转的角度
	
	CCSprite * punishbg;
	CCMenu   * m_pResult;
	
	CCSprite   * spTip;
	CCLabelTTF * numLabel;
	
	ALuint   m_nTurningSoundID;
	
	float    m_nEffectOpacity;
	float    m_nTurningSoundValume;
}

+(CCScene*)scene;

-(id)init:(id<Bottle_GameDelegate>) _delegate;

@end
